#字符串
#用引号引起的都是字符串，包括单引号和双引号
message = 'nIhao'
second_message = "你好"
print(message)
print(second_message)

#使用方法修改字符串大小写
#title()使英文首字母大写
#upper()英文全大写
#lower()英文全小写
print(message.title())
print(message.upper())
print(message.lower())

#在字符串中使用变量
first_name = '何'
second_name = 'four'
print("hello,"f"{first_name}{second_name}")

#简化
name = f"hello,{first_name}{second_name}"
print(name.title())

#制表符(缩进) \t
print("python")
print("\tpython")

#换行符 \n
print("你好\npython")

#删除空白
#左边空白 lstrip()
#右边空白 rstrip()
#左右空白 strip()
test = "   1python    "
test = test.lstrip()
print(test)

#删除前缀  removeprefix("")
first_url = "https://www.baidu.com/"
first_url = first_url.removeprefix("https://")
print(first_url)